//
//  bbViewController.m
//  bblib
//
//  Created by yhbj on 01/08/2019.
//  Copyright (c) 2019 yhbj. All rights reserved.
//

#import "bbViewController.h"
#import "HomeViewController.h"
@interface bbViewController ()

@end

@implementation bbViewController
- (IBAction)pushAction:(UIButton *)sender {
    HomeViewController *vc = [[HomeViewController alloc] init];
    vc.contentStr = @"biubiubiu-wa";
    vc.title = @"xib";
//    NSBundle *current = [NSBundle bundleForClass:[self class]];
//    LoginViewController *vc = [current loadNibNamed:@"LoginViewController" owner:nil options:nil].lastObject;
    [self.navigationController pushViewController:vc animated:YES];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    UIImageView *image = [[UIImageView alloc] init];
    [self.view addSubview:image];
    //    image.image = [UIImage imageWithContentsOfFile:patch];
    image.backgroundColor = [UIColor redColor];
    image.frame = CGRectMake(100, 100, 50, 50);
    NSBundle *app = [NSBundle mainBundle];
    image.image = [UIImage imageNamed:@"header"];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
